<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻资讯</title>
    <link rel="stylesheet" href="css/new.css" />
    <link rel="stylesheet" href="css/common.css" />
</head>
<body>
<div class="page-wrap">
    <div class="page-container">
        <div class="head">
            <img class="head-logo" src="img/logo.png">
            <p class="head-num">
                <img class="head-num-icon" src="img/head-num.png">
                <i>400-100-4388</i>
            </p>
        </div>
        <div class="nav">
            <ul class="nav-list">
                <li class="nav-list-f"><a href="/" class="nav-list-f">首页</a></li>
                <li><a href="/intro.html">企业介绍</a></li>
                <li><a href="/jksc.html">健康商城</a></li>
                <li><a href="/news.html" class="select">新闻资讯</a></li>
                <li><a href="#">养生资讯</a></li>
            </ul>
            <p class="nav-right">
                <a href="#">马上预约</a>
                <span></span>
                <a href="#">查看报告</a>
            </p>
        </div>
    </div>
    <div class="news">
        <div class="news-tabs clearfix">
            <ul class="news-tab clearfix">
                <% data.data3.forEach(function(article){ %>
                <li><a href="?id=<%=article.cId%>&pageIndex=0" class="news-tab-title"><%=article.categName%></a></li>
                <% }) %>
            </ul>
        </div>
        <div class="news-left">
            <!--<div class="buniness">-->
                <h5>
                    <span class="news-empty"></span><span class="news-title"><%=data.data4[0].categName%></span><a href="#" class="more">更多<img src="img/news/more.png" alt=""></a>
                </h5>
                <div class="content-left">
                    <% data.data1.forEach(function(article){ %>
                        <% JSON.parse(article.content).forEach(function(a){ %>
                    <div class="con-left-item clearfix">
                        <div class="left-item-img">
                            <% if (a.data[0].link.indexOf('ci_id')==-1){ %>
                            <a href="<%=a.data[0].link%>" target="_blank"><img src="<%=a.data[0].pics%>" alt=""></a>
                            <% } else { %>
                            <a href="detail.html?ciId=<%=a.data[0].link.split('&')[0].split('ci_id=')[1]%>" target="_blank"><img src="<%=a.data[0].pic%>" alt=""></a>
                            <% } %>
                        </div>
                        <div class="left-item-txt">
                            <p class="left-title">
                                <% if (a.data[0].link.indexOf('ci_id')==-1){ %>
                                <a href="<%=a.data[0].link%>" target="_blank" class="the-title"><%=a.data[0].title%></a>
                                <% } else { %>
                                <a href="detail.html?ciId=<%=a.data[0].link.split('&')[0].split('ci_id=')[1]%>" target="_blank" class="the-title"><%=a.data[0].title%></a>
                                <% } %>
                            </p>
                            <div class="left-detail clearfix">
                                <div class="left-con-detail clearfix">
                                    <p class="detail-text"><%=a.data[0].intro%></p>
                                </div>
                            </div>
                            <p class="left-detail-p">
                                <span class="detail-from"><%=a.data[0].from_where%></span>
                                <span class="detail-time"><%=data.data4[0].createdDate.substring(0,10)%></span>
                            </p>
                        </div>
                    </div>
                    <% }) %>
                    <% }) %>
                </div>
            <div class="pagination">
                <ul class="page-pagination">
                    <li><a href="?id=<%=data.data4[0].cId%>&pageIndex=0" class="firstpage">首页</a></li>
                    <li><a class="prefpage pref">上一页</a></li>
                    <li>第<span class="nowpage"></span>页</li>
                    <li><a class="nextpage next">下一页</a></li>
                    <li><a href="?id=<%=data.data4[0].cId%>&pageIndex=<%=data.data2-1%>" class="lastpage">尾页</a></li>
                </ul>
            </div>

            <!--</div>-->
        </div>
    </div>
</div>
<div class="bottom">
    <div class="bottom-container">
        <div class="bottom-logo">
            <img src="img/bottom-logo.png" alt="">
        </div>
        <div class="bottom-text">
            <p class="bottom-text-num">
                <span>全国咨询热线：400-100-4388</span>
                <span>咨询QQ：897954687</span>
            </p>
            <p class="bottom-text-link">
                <a href="intro.html" class="bottom-link-marginl">关于我们</a>
                <span></span>
                <a href="contact.html" class="bottom-link-normal">联系我们</a>
                <span></span>
                <a href="#" class="bottom-link-normal">投资合作</a>
                <span></span>
                <a href="recruit.html" class="bottom-link-marginr">人才招聘</a>
            </p>
            <p class="bottom-text-copy">Copyright&copy;2017浙江医聚电子商务有限公司 WWW.yjyl.com All Right Reserved</p>
        </div>
        <div class="bottom-wx">
            <img src="img/bottom-ewm.jpg" class="bottom-wxpic" alt="">
            <p>
                <img src="img/bottom-wx-icon.png" alt="">
                <span>微信公众号</span>
            </p>
        </div>
    </div>
</div>
<script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
<script>
    var path1 = window.location.href.split('?')[1];
    var url1;
    var urlid = "<%=data.data4[0].cId%>";
    if(path1){
        url1 = path1.substr(-1,path1.length);
    }else{
        url1=0;
    }
    if(url1=='<%=data.data2-1%>'){
        $('.next').removeClass("nextpage");
    }
</script>
<script src="/js/news.js"></script>
<script src="/js/common.js"></script>
</body>
</html>
